SoftEther VPN Server導入手順書
1. SoftEther VPNのvpnserverをインストールする。Ubuntuの場合はUbuntuのAPTリポジトリからインストールできる。
code:sh
sudo apt-get install softether-vpn-server
2. 初期状態ではサーバーの管理画面のパスワードと仮想ハブのパスワードが未設定になっているので、設定する。
code:sh
sudo vpncmd localhost:5555 /SERVER /CMD ServerPasswordSet
sudo vpncmd localhost:5555 /SERVER /CMD SetHubPassword
3. サーバーの起動時にvpnserverが自動起動するように設定する。
code:sh
sudo systemctl enable softether-vpnserver
4. SoftEther VPNが使用するポートを開ける。
5555/tcp:クライアントからの接続を受け付けるために使用する。
40000:44999/udp:UDP高速化機能で使用する。
ファイアウォールとしてufwを使用している場合は次のように設定できる。
code:sh
sudo ufw allow 5555/tcp
sudo ufw allow 40000:44999/udp
参考にした資料
7.3 Linux へのインストールと初期設定 - SoftEther VPN プロジェクト
Ubuntu 22.04 LTS に SoftEther をインストール #SoftEther - Qiita
SoftEtherVPN/src/Cedar/UdpAccel.h at master · SoftEtherVPN/SoftEtherVPN · GitHub